package calao.client.ui;

import com.google.gwt.user.client.DOM;
import com.google.gwt.user.client.ui.Widget;

public class PreformattedText 
extends Widget
{
	
	public PreformattedText()
	{
		setElement(DOM.createElement("pre"));
	}
	
	public PreformattedText(String text)
	{
		this();
		setText(text);
	}
	
	public void setText(String text)
	{
		DOM.setInnerText(getElement(), text);
	}

	public String getText()
	{
		return DOM.getInnerText(getElement());
	}

}
